package com.jin.flashsaled.result;

import lombok.*;


@Getter
public enum ResultEnum {
    SUCCESS(200,"success"),
    ERROR(500,"服务端异常"),
    PHONE_ERROR(500201,"手机号格式输入有误"),
    LOGIN_ERROR(500202,"账号或密码错误"),
    NOSTOCK(500302,"商品已经被抢完了"),
    HAVEBUY(500301,"商品限购一次"),
    BUYING(500303,"正在排队中");
    private final Integer code;
    private final String msg;

    // 显式 private 构造器
    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg  = msg;
    }



}
